package com.hyphenate.easeui.mwidget.bean;

import com.hyphenate.easeui.mwidget.wheelview.interfaces.IPickerViewData;

import java.util.ArrayList;
import java.util.List;

public class AreaCodeBean implements IPickerViewData {
    public String id;
    public String name;
    public String shortName;
    public String parentId;
    public String level;
    public List<AreaCodeBean> subList;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getShortName() {
        return shortName;
    }

    public void setShortName(String shortName) {
        this.shortName = shortName;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public void setSubList(List<AreaCodeBean> subList) {
        this.subList = subList;
    }

    public AreaCodeBean() {
    }

    public AreaCodeBean(String name) {
        this.name = name;
        subList = new ArrayList<>();
    }

    public String getName() {
        return name;
    }

    public List<AreaCodeBean> getSubList() {
        if(subList==null)subList = new ArrayList<>(  );
        return subList;
    }

    @Override
    public String getPickerViewText() {
        return this.name;
    }
}
